﻿<ss:SlView
    x:Class="WorkSpace.Theme.HeaderPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:ss="clr-namespace:SmartSpace.UI.Silverlight;assembly=SmartSpace.UI.Silverlight"
    xmlns:my="clr-namespace:WorkSpace.Theme"
    mc:Ignorable="d"
    d:DesignWidth="600">
    <ss:SlView.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="./DictionaryForm.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </ss:SlView.Resources>
    <Grid Height="90" Background="#FF008AE7">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Image Name="_ctlImgLogo" Source="./Resources/logo.png" Grid.Column="0" Width="64" Height="64" Margin="10,0,0,0"/>
        <ss:SlH1 x:Name="_ctlAppTitle" Grid.Column="1" Margin="10,0,0,0" HorizontalAlignment="Left">
            <TextBlock Text="系统标题名称栏目" FontWeight="Bold"/>
        </ss:SlH1>
        <Grid Grid.Column="2">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,5,0">
                <StackPanel>
                    <TextBlock Name="_ctlTextDate" Text="2013年01月21日 (星期一)" FontSize="14" Foreground="White"/>
                    <TextBlock Name="_ctlTextTime" Text="00:00" FontSize="24" HorizontalAlignment="Right" FontWeight="Bold" Foreground="White"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="5">
                <ListBox Name="_ctlListShortcuts" Background="{x:Null}" BorderThickness="0">
                    <ListBox.ItemContainerStyle>
                        <Style TargetType="ListBoxItem">
                            <Setter Property="Template">
                                <Setter.Value>
                                    <ControlTemplate TargetType="ListBoxItem">
                                        <ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                                    </ControlTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </ListBox.ItemContainerStyle>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <HyperlinkButton Name="_ctlLinkShortcut" Click="_ctlLinkShortcut_Click" Foreground="White" Margin="5,0,0,0" Content="{Binding Name}"/>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                </ListBox>
                <TextBlock Foreground="White" Text="欢迎您:" Margin="5,0,0,0" VerticalAlignment="Center"/>
                <Image Source="./Resources/user.png" Width="16" Height="16" Margin="2,0,2,0"/>
                <TextBlock Name="_ctlTxtUser" Foreground="White" Text="测试用户" Margin="0,0,0,0" VerticalAlignment="Center"/>
                <HyperlinkButton Foreground="White" Margin="5,0,0,0">注销</HyperlinkButton>
            </StackPanel>
        </Grid>
    </Grid>
</ss:SlView>
